package cn.wzx.service;

import cn.wzx.entity.Largefile;
import cn.wzx.mapper.LargefileMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LargefileServiceImpl implements LargefileService {
    @Autowired(required = false)
    LargefileMapper largefileMapper;

    // 添加图片
    @Override
    public int add(Largefile largefile) {
        return largefileMapper.add(largefile);
    }

    // 根据ID查询
    @Override
    public Largefile findById(String id) {
        return largefileMapper.findById(id);
    }

    // 根据ID删除
    @Override
    public void delById(String id) {
        largefileMapper.delById(id);
    }

}
